Skip to content

Conversation

@mdpiper
Copy link
Member

@mdpiper mdpiper commented May 2, 2025

This PR updates the linters and actions we use in our CI workflow.

Tasks addressed include:

  1. Update the pre-commit hooks for linting, then run the linters and clean lint
  2. Use the setup-python action instead of setup-miniconda in the test-notebooks CI workflow
  3. Replace an invalid OT API key with the demo key in the Landlab lessons
  4. Use Python 3.13 for testing notebooks

@mdpiper mdpiper marked this pull request as ready for review May 2, 2025 19:28
@mdpiper mdpiper merged commit 7096709 into main May 2, 2025
11 checks passed
@mdpiper mdpiper deleted the mdpiper/update-linters-and-actions branch May 2, 2025 20:08
mdpiper added a commit that referenced this pull request May 2, 2025
* Update pre-commit hooks

* Clean lint with updated pre-commit hooks

* Allow E704, multiple definitions per line

* Manually clean lint found by flake8

* Make test-notebooks job cancelable

* Use setup-python action instead of setup-miniconda

* Use the conda-forge channel to find nbmake

* Also use conda-forge channel for requirements

* Clean lint with pre-commit hooks

* Replace invalid API key with demo key

* Use python=3.13

* Use latest versions of landlab and pymt

* Clean lint
mdpiper added a commit that referenced this pull request May 2, 2025
* reset cel output & renamed hillslope_functions notebook

* Updated diffusion and functino notebooks

* Update linters and actions (#157)

* Update pre-commit hooks

* Clean lint with updated pre-commit hooks

* Allow E704, multiple definitions per line

* Manually clean lint found by flake8

* Make test-notebooks job cancelable

* Use setup-python action instead of setup-miniconda

* Use the conda-forge channel to find nbmake

* Also use conda-forge channel for requirements

* Clean lint with pre-commit hooks

* Replace invalid API key with demo key

* Use python=3.13

* Use latest versions of landlab and pymt

* Clean lint

* Disable nbqa-isort, fighting with black

* Clean lint with pre-commit hooks

* Disable flake8 rule F821

It's giving incorrect info about undefined variable names that are
defined in cells upstream.

* Change variable name from l to lx

flake8 was warning about an ambiguous variable name, since "l"
could be interpreted as "1".

* Skip tests on hillslope notebooks

We can come back later to get them working with tests.

---------

Co-authored-by: Mark Piper <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants